<?php
/**
 *      [Jsen.net] (C)2013-2099 Jason Group Science and technology co., LTD.
 *      This is NOT a freeware, use is subject to license terms
 *
 *      http://www.jsen.net
 *      tel:400-681-9511
 */
class DailiBaseController extends BaseController {
    public function _initialize() {
        define('IN_DAILI', TRUE);
		C('ADMIN_LIST',array('1')); //定义超级管理员的ID；
		C('PAGE_NUM',15); //后台每页默认显示数量；
		C('PAGE_CONFIG',array('header'=>'条记录','prev'=>'上一页','next'=>'下一页','first'=>'第一页','last'=>'最后一页','theme'=>' %totalRow% %header% %nowPage%/%totalPage% 页 每页<input onkeypress="changePageSize(event,this)" class="page_view_num" name="page_view_num" value=%listRows%>%frist% %upPage% %linkPage% %downPage% %end%')); 
		
		$page_size = $_GET['pagesize'] ? $_GET['pagesize'] : C('PAGE_NUM');
		define('PAGE_SIZE',$page_size); //每页显示数量
        parent::_initialize();
        $this->daili = (int) session('DAILI_ID');
        if ($this->daili < 1) {
            showmessage('请登录后操作', U('Daili/Public/login'));
        }
        define('DAILI_ID', $this->daili);            
    }
}